package com.example.user.login

import android.widget.Toast
import androidx.lifecycle.SavedStateHandle
import com.example.library_base.base.BaseViewModel
import com.example.library_base.toast.qualifiers.ToastShort
import com.example.user.user.UserModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class LoginViewModel @Inject constructor(
    private val repository: LoginRepository,
    private val savedStateHandle: SavedStateHandle
): BaseViewModel<UserModel>() {

    @Inject
    @ToastShort
    lateinit var toast: Toast

    fun login(account: String, password: String){
        toast.setText("$account :: $password")
        toast.show()
    }
}